package com.authine.cloudpivot.ext.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @Author: zhoujian
 * @Date: 2020/1/7 14:58
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("退款记录VO")
public class OrderGoodsRefundLogV1VO {
    @ApiModelProperty("申请人id")
    private String memberId;
    @ApiModelProperty("申请人名称")
    private String memberName;
    @ApiModelProperty("备注")
    private String memo;
    @ApiModelProperty("架构名称")
    private String architectureName;
    @ApiModelProperty("订单商品名称")
    private String orderGoodsName;
    @ApiModelProperty("操作名称")
    private String behaviorName;

//    public static Collection<OrderGoodsRefundLogV1VO> toOrderGoodsRefundLogV1VO(Collection<OrderGoodsRefundLogEntity> orderGoodsRefundEntities) {
//        if (CollectionUtils.isEmpty(orderGoodsRefundEntities)) {
//            return Collections.emptyList();
//        }
//        return orderGoodsRefundEntities.stream().map(e -> new OrderGoodsRefundLogV1VO(e.getMemberId().longValue(),e.getMemberName(), e.getMemo(),
//                null, e.getOrderGoodsName(), e.getBehaviorName())).collect(Collectors.toList());
//    }
}
